<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width,initial-scale=1,user-scalable=0">
<title data-th-text="${accountname}"></title>
<!-- 引入 WeUI -->
<link rel="stylesheet" href="/web-finance/style/weui.min.css">
<link rel="stylesheet" href="/web-finance/style/finance.css">
<link rel="stylesheet" href="/web-finance/example/example.css">
<script src="/web-finance/example/zepto.min.js"></script>
<style type="text/css">
object, embed {
	-webkit-animation-duration: .001s;
	-webkit-animation-name: playerInserted;
	-ms-animation-duration: .001s;
	-ms-animation-name: playerInserted;
	-o-animation-duration: .001s;
	-o-animation-name: playerInserted;
	animation-duration: .001s;
	animation-name: playerInserted;
}

@
-webkit-keyframes playerInserted {
	from {opacity: 0.99;
}

to {
	opacity: 1;
}

}
@
-ms-keyframes playerInserted {
	from {opacity: 0.99;
}

to {
	opacity: 1;
}

}
@
-o-keyframes playerInserted {
	from {opacity: 0.99;
}

to {
	opacity: 1;
}

}
@
keyframes playerInserted {
	from {opacity: 0.99;
}

to {
	opacity: 1;
}
}
</style>
</head>
<body ontouchstart>
	<div class="page__bd">
		<div class="weui-panel weui-panel_access">
			<!--<div class="weui-panel__hd"></div>-->
			<div class="weui-panel__bd">
				<div class="weui-media-box weui-media-box_text">
					<h4 class="weui-media-box__title" data-th-text="${accountname}"></h4>
					<p class="p_mycss" data-th-text="${desc}"></p>
				</div>
			</div>
			<div class="weui-panel__ft">

				<form action="" method="post">
				<input id="accountid" name="accountid" type="hidden"
							th:value="${accountid}" />
						<input id="projectid" name="projectid" type="hidden"
							value="" /> <input id="projectname" name="projectname"
							type="hidden" value="" />
					<div class="weui-cells" th:each="lm : ${detail}">
					 <a class="weui-cell weui-cell_access"
							href="javascript:;" th:id="'btn_'+${lmStat.index}"
							th:onclick="'javascript:goNext(\''+${lm.projectid}+'\', \''+${lm.projectname}+'\')'">

							<div class="weui-cell__bd">
								<p class = "pj_title" th:text="${lm.projectname}">cell standard</p>
								<p th:text="${lm.fbalance}">cell standard</p>
								<p th:text="${lm.fcreditamount}">cell standard</p>
								<p th:text="${lm.fdebitamount}">cell standard</p>
							</div>
							<div class="weui-cell__ft"></div>

						</a>
					</div>
				</form>
			</div>
		</div>
	</div>
	<div class="page msg_warn js_show" th:if="${not #strings.isEmpty(msg)}">
		<div class="weui-msg">
			<div class="weui-msg__icon-area">
				<i class="weui-icon-warn weui-icon_msg"></i>
			</div>
			<div class="weui-msg__text-area">
				<h2 class="weui-msg__title" data-th-text="${msg}">操作失败</h2>
				<p class="weui-msg__desc">
					如有问题请联系管理员。<a href="tel:057688816988">拨打电话</a>
				</p>
			</div>
			<div class="weui-msg__opr-area">
				<p class="weui-btn-area">
					<a href="javascript:history.back();"
						class="weui-btn weui-btn_primary">返回</a>
					<!-- <a href="javascript:history.back();" class="weui-btn weui-btn_default">辅助操作</a>  -->
				</p>
			</div>
			<div class="weui-msg__extra-area">
				<div class="weui-footer">
					<p class="weui-footer__links">
						<a href="javascript:void(0);" class="weui-footer__link">www.fyg.cn</a>
					</p>
					<p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript">
	function goNext(a, b) {
		var input = $("#projectid");
		var input2 = $("#projectname");
		var form = $("form");
		input[0].value = a;
		input2[0].value = b;
		form.attr("action", "/web-finance/balancedetail");
		form.submit();
	}
</script>
</html>